# mul/pdf1d/CMakeLists.txt

doxygen_add_library(contrib/mul/pdf1d
  DEPENDS contrib/mul/mbl core/vbl core/vnl
  PACKAGE contrib/mul
  DESCRIPTION "Univariate Probability Density Function Library"
  )

set(pdf1d_sources
  pdf1d_all.h                                      pdf1d_add_all_loaders.cxx
  pdf1d_pdf.cxx                                    pdf1d_pdf.h
  pdf1d_sampler.cxx                                pdf1d_sampler.h
  pdf1d_builder.cxx                                pdf1d_builder.h
  pdf1d_prob_chi2.cxx                              pdf1d_prob_chi2.h
  pdf1d_gaussian.cxx                               pdf1d_gaussian.h
  pdf1d_gaussian_sampler.cxx                       pdf1d_gaussian_sampler.h
  pdf1d_gaussian_builder.cxx                       pdf1d_gaussian_builder.h
  pdf1d_flat.cxx                                   pdf1d_flat.h
  pdf1d_flat_sampler.cxx                           pdf1d_flat_sampler.h
  pdf1d_flat_builder.cxx                           pdf1d_flat_builder.h
  pdf1d_exponential.cxx                            pdf1d_exponential.h
  pdf1d_exponential_sampler.cxx                    pdf1d_exponential_sampler.h
  pdf1d_exponential_builder.cxx                    pdf1d_exponential_builder.h
  pdf1d_kernel_pdf.cxx                             pdf1d_kernel_pdf.h
  pdf1d_kernel_pdf_builder.cxx                     pdf1d_kernel_pdf_builder.h
  pdf1d_mixture.cxx                                pdf1d_gaussian_kernel_pdf.h
  pdf1d_mixture_sampler.cxx                        pdf1d_gaussian_kernel_pdf_sampler.h
  pdf1d_mixture_builder.cxx                        pdf1d_gaussian_kernel_pdf_builder.h
  pdf1d_gaussian_kernel_pdf.cxx                    pdf1d_epanech_kernel_pdf.h
  pdf1d_gaussian_kernel_pdf_sampler.cxx            pdf1d_epanech_kernel_pdf_sampler.h
  pdf1d_gaussian_kernel_pdf_builder.cxx            pdf1d_epanech_kernel_pdf_builder.h
  pdf1d_epanech_kernel_pdf.cxx                     pdf1d_weighted_kernel_pdf.h
  pdf1d_epanech_kernel_pdf_sampler.cxx             pdf1d_weighted_epanech_kernel_pdf.h
  pdf1d_epanech_kernel_pdf_builder.cxx             pdf1d_weighted_epanech_kernel_sampler.h
  pdf1d_weighted_kernel_pdf.cxx                    pdf1d_mixture.h
  pdf1d_weighted_epanech_kernel_pdf.cxx            pdf1d_mixture_sampler.h
  pdf1d_weighted_epanech_kernel_sampler.cxx        pdf1d_mixture_builder.h
  pdf1d_bhat_overlap.cxx                           pdf1d_bhat_overlap.h
  pdf1d_calc_mean_var.cxx                          pdf1d_calc_mean_var.h
  pdf1d_resample.cxx                               pdf1d_resample.h
  pdf1d_compare_to_pdf.cxx                         pdf1d_compare_to_pdf.h
  pdf1d_compare_to_pdf_bhat.cxx                    pdf1d_compare_to_pdf_bhat.h
  pdf1d_compare_to_pdf_ks.cxx                      pdf1d_compare_to_pdf_ks.h
  pdf1d_prob_ks.cxx                                pdf1d_prob_ks.h
  pdf1d_compare_samples.cxx                        pdf1d_compare_samples.h
  pdf1d_select_pdf.cxx                             pdf1d_select_pdf.h
)

aux_source_directory(Templates pdf1d_sources)

vxl_add_library(LIBRARY_NAME pdf1d LIBRARY_SOURCES ${pdf1d_sources})
target_link_libraries( pdf1d mbl ${VXL_LIB_PREFIX}vbl ${VXL_LIB_PREFIX}vnl_io ${VXL_LIB_PREFIX}vnl ${VXL_LIB_PREFIX}vsl )

if(VXL_BUILD_MUL_TOOLS)
  add_subdirectory(tools)
endif()


if( BUILD_TESTING)
  add_subdirectory(tests)
endif()
